/*
 * BookTest.java
 *
 * This program demonstrates the use of one-dimensional array to store ISBN
 * numbers and sort them.
 *

 */

package com.javacore.day4.BooksISBN;

/**
 * This class uses the Book class to store, sort and display ISBN numbers of
 * various books.
 *
 * @author 
 */

public class BookTest {
    
    /** Creates a new instance of BookTest */
    public BookTest() {
    }
    
    /**
     * This is entry point of the application.
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Book objBookISBNs = new Book();
        
        // Populate the array with 5 ISBN numbers
        objBookISBNs.setIsbn();
        
        // Display the ISBN numbers accepted from the user
        System.out.println("\nThe ISBN numbers of the books are: ");
        objBookISBNs.getIsbn();
        
        // Sort the ISBN numbers
        objBookISBNs.sortIsbn();
        
        // Display the ISBN numbers sorted in ascending order
        System.out.println("\nThe ISBN numbers of the books in " +
                "ascending order are: ");
        objBookISBNs.getIsbn();
    }
    
}
